package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 儿童高危信息信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class ChildAssessInsertRequestDTO extends BaseRequestDTO {

    /**
     * 档案ID
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "档案ID",required = true)
    private Long archivesId;

    /**
     * 高危评估等级
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "高危评估等级",required = true)
    private String comprehensiveEvaluation;

    /**
     * 高危评估结果
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "高危评估结果",required = true)
    private String result;

    /**
     * 高危评估结果
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "高危评估信息json字符串（[{'hgAssessId':'1'}]）单引号替换成双引号",required = true)
    private String assessValues;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
